home *** CD-ROM | disk | FTP | other *** search
-
-
-
- TTTTmmmmSSSSttttrrrriiiinnnngggg((((3333TTTTmmmm)))) TTTTmmmmSSSSttttrrrriiiinnnngggg((((3333TTTTmmmm))))
-
-
-
- NNNNAAAAMMMMEEEE
- TTTTmmmmSSSSttttrrrriiiinnnngggg - the string to XmString conversion
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- This section describes the way strings are converted to XmStrings.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- Motif uses a data type known as XmString. This is a compound string
- format, containing rendition information such as direction and font.
- XmStrings are used in a number of places, most notably in the label of a
- Label widget.
-
- In the conversion of a string to an XmString, the following format rules
- are applied:
-
- The string is treated as a list of words.
-
- Words in the list are concatenated with a single space between them, no
- matter what the original white space between them.
-
- Individual words may be quoted either by quotes "..." or brackets {...}.
- White space within a quoted word is preserved, but the quote marks or
- brackets are discarded.
-
- If a word begins with the character '@' then it is treated as a control
- word for the formatting. @n places a newline component in the XmString.
- @L or @l places a left-to-right component in the XmString. @R or @r
- places a right-to-left component in the XmString. @f_X places a font
- component in the XmString, where the single character _X is the font tag.
- @f(_X_Y places a font component in the XmString, where the two character
- _X_Y is the font tag. @F{_f_o_n_t-_t_a_g} places a font component in the
- XmString, where _f_o_n_t-_t_a_g is the font tag of any length.
-
- The font tag is matched with a font as specified in the fontList of the
- widget that the XmString is rendered in. The fontList is a list of _f_o_n_t-
- _n_a_m_e=_f_o_n_t-_t_a_g specifiers separated by commas.
-
- Example
- .label setValues \
- -fontList "9x15=R, 9x15bold=bold" \
- -labelString "ordinary @r right-to-left @f{bold}
- right-to-left bold text
- @fR @l ordinary font, left to right"
-
- BBBBUUUUGGGGSSSS
- None known.
-
- AAAAUUUUTTTTHHHHOOOORRRR
- Jan Newmarch, University of Canberra
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-